<!DOCTYPE html>
<html>
<head>
    <title></title>
		<#include "/header.html">
</head>
<body>
<!-- <div v-show="showLists">
    	<form class="form-horizontal">
	        <div class="zTreeDemoBackground left">
				<ul id="deptTree" class="ztree"></ul>
			</div>
    	</form>
</div> -->
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
        	<div class="form-group col-sm-2">
				<input type="text" class="form-control" v-model="q.studentName"  @keyup.enter="query" placeholder="请输入员工名字或者登录名">
			</div>
			<div class="form-group col-sm-1">
				<input type="text" class="form-control"  v-model="q.deptName" @click="deptTree" readonly="readonly" placeholder="所属部门">
			</div>
				<a class="btn btn-default" @click="query">查询</a>
			
				<a class="btn btn-warning" @click="clear">清空</a>
			
			<a class="btn btn-primary" @click="detail"><i class="fa fa-plus"></i>&nbsp;详情</a>
			<#if shiro.hasPermission("student:student:save")>
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			</#if>
			<#if shiro.hasPermission("student:student:update")>
            <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			</#if>
			<#if shiro.hasPermission("student:student:reset")>
            <a class="btn btn-primary" @click="reset"><i class="fa fa-pencil-square-o"></i>&nbsp;重置密码</a>
			</#if>
			<#if shiro.hasPermission("student:student:delete")>
            <a class="btn btn-primary" @click="updateState"><i class="fa fa-trash-o"></i>&nbsp;停/启用</a>
			</#if>
			<#if shiro.hasPermission("student:student:delete")>
            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			</#if>
			<!-- <#if shiro.hasPermission("student:student:import")>
            <a class="btn btn-primary" ><label for="file" style="margin-bottom: 0px;"><i class="fa fa-file-excel-o"></i>&nbsp;导入</label></a>
			<input id="file" name="file" type="file" style="display:none" @change="impo()"/>
			</#if> -->
			<a class="btn btn-primary" @click="dao"><i class="fa fa-file-excel-o"></i>&nbsp;导入</a>
			<#if shiro.hasPermission("student:student:download")>
            <a class="btn btn-primary" @click="download"><label  style="margin-bottom: 0px;"><i class="fa fa-file-excel-o"></i>&nbsp;下载</label></a>
            </#if>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="showAdd" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
                    
                    <div class="form-group">
						<div class="col-sm-2 control-label">所属部门</div>
						<div class="col-sm-10">
							<input type="text" class="form-control" style="cursor:pointer;" v-model="student.deptName" @click="deptTree" readonly="readonly" placeholder="所属部门"/>
						</div>
					</div>
					<div class="form-group">
                        <div class="col-sm-2 control-label">真实姓名</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="student.name" placeholder="真实姓名"/>
                        </div>
                    </div>
					<div class="form-group">
                        <div class="col-sm-2 control-label">登录名</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="student.userName" placeholder="登录名"/>
                        </div>
                    </div>
					<div class="form-group">
                        <div class="col-sm-2 control-label">身份证</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="student.IDCard" placeholder="身份证"/>
                        </div>
                    </div>
					<div class="form-group">
                        <div class="col-sm-2 control-label">用户密码</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="student.userPwd" placeholder="用户密码"/>
                        </div>
                    </div>
					<div class="form-group">
                        <div class="col-sm-2 control-label">用户手机号</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="student.phone" placeholder="用户手机号"/>
                        </div>
                    </div>
					<div class="form-group">
                        <div class="col-sm-2 control-label">岗位</div>
                        <div class="col-sm-10">
                           <!--  <input type="text" class="form-control" v-model="student.post" placeholder="岗位"/> -->
                            <select v-model="student.post" class="form-control" placeholder="岗位">
						        <option v-for="item in postList" v-bind:value="item.id">{{item.postName}}</option>
						    </select>
                        </div>
                    </div>
					<div class="form-group">
                        <div class="col-sm-2 control-label">兼职岗位</div>
                        <div class="col-sm-10">
                            <!-- <input type="text" class="form-control" v-model="student.partTimePost" placeholder="兼职岗位"/> -->
                            <select v-model="student.partTimePost" class="form-control" placeholder="兼职岗位">
						        <option v-for="item in postList" v-bind:value="item.id">{{item.postName}}</option>
						    </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-2 control-label">专业角色</div>
                        <div class="col-sm-10">
                            <!-- <input type="text" class="form-control" v-model="student.partTimePost" placeholder="兼职岗位"/> -->
                            <select v-model="majorRoleId" class="form-control" placeholder="专业角色">
                                <option v-for="majorRole in majorRoleList" v-bind:value="majorRole.id">{{majorRole.roleName}}</option>
                            </select>
                        </div>
                    </div>
					<div class="form-group">
                        <div class="col-sm-2 control-label">工号</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="student.workid" placeholder="工号"/>
                        </div>
                    </div>
					<div class="form-group">
                        <div class="col-sm-2 control-label">性别</div>
                        <div class="col-sm-10">
                            <!-- <input type="text" class="form-control" v-model="student.sex" placeholder="性别 0女 1男"/> -->
                            <input v-model="student.sex" type="radio" checked="checked" name="radios" value="1"/>男<input v-model="student.sex" type="radio"  name="radios" value="0"/>女
                        </div>
                    </div>
					<div class="form-group">
		                <div class="col-sm-2 control-label"></div>
		                <input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
		                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
		            </div>
        </form>
    </div>
    
    
        <div v-show="detailShowList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
                    
                    <div class="form-group">
						<div class="col-sm-2 control-label">所属部门</div>
						<div class="col-sm-10">
							<input type="text" class="form-control" readonly style="cursor:pointer;" v-model="student.deptName"  readonly="readonly" placeholder="所属部门"/>
						</div>
					</div>
					<div class="form-group">
                        <div class="col-sm-2 control-label">真实姓名</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" readonly v-model="student.name" placeholder="真实姓名"/>
                        </div>
                    </div>
					<div class="form-group">
                        <div class="col-sm-2 control-label">登录名</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" readonly v-model="student.userName" placeholder="登录名"/>
                        </div>
                    </div>
					<div class="form-group">
                        <div class="col-sm-2 control-label">身份证</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" readonly v-model="student.IDCard" placeholder="身份证"/>
                        </div>
                    </div>
					<div class="form-group">
                        <div class="col-sm-2 control-label">用户手机号</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" readonly v-model="student.phone" placeholder="用户手机号"/>
                        </div>
                    </div>
					<div class="form-group">
                        <div class="col-sm-2 control-label">岗位</div>
                        <div class="col-sm-10">
                           <!--  <input type="text" class="form-control" v-model="student.post" placeholder="岗位"/> -->
                            <select v-model="student.post" readonly class="form-control" placeholder="岗位">
						        <option v-for="item in postList" v-bind:value="item.id">{{item.postName}}</option>
						    </select>
                        </div>
                    </div>
					<div class="form-group">
                        <div class="col-sm-2 control-label">兼职岗位12313</div>
                        <div class="col-sm-10">
                            <!-- <input type="text" class="form-control" v-model="student.partTimePost" placeholder="兼职岗位"/> -->
                            <select v-model="student.partTimePost" readonly class="form-control" placeholder="兼职岗位">
						        <option v-for="item in postList" v-bind:value="item.id">{{item.postName}}</option>
						    </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-2 control-label">专业角色</div>
                        <div class="col-sm-10">
                            <!-- <input type="text" class="form-control" v-model="student.partTimePost" placeholder="兼职岗位"/> -->
                            <select v-model="student.majorRoleId" readonly class="form-control" placeholder="专业角色">
                                <option v-for="majorRole in majorRoleList" v-bind:value="majorRole.id">{{majorRole.roleName}}</option>
                            </select>
                        </div>
                    </div>
					<div class="form-group">
                        <div class="col-sm-2 control-label">工号</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" readonly v-model="student.workid" placeholder="工号"/>
                        </div>
                    </div>
					<div class="form-group">
                        <div class="col-sm-2 control-label">性别</div>
                        <div class="col-sm-10">
                            <input v-model="student.sex" readonly type="radio" checked="checked" name="radios" value="1"/>男<input v-model="student.sex" type="radio"  name="radios" value="0"/>女
                        </div>
                    </div>

					<div class="form-group">
		                <div class="col-sm-2 control-label"></div>
		                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
		            </div>
        </form>
    </div>
    
    
    <!--员工批量导入  -->
    <div v-show="imp" class="panel panel-default">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal">
			<div class="form-group">
				<div class="col-sm-2 control-label">所属部门</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="student.deptName" style="cursor:pointer;" @click="deptTree" readonly="readonly" placeholder="所属部门"/>
				</div>
			</div>
			<div class="form-group">
                        <div class="col-sm-2 control-label">专业角色</div>
                        <div class="col-sm-10">
                            <!-- <input type="text" class="form-control" v-model="student.partTimePost" placeholder="兼职岗位"/> -->
                            <select v-model="majorRoleId" class="form-control" placeholder="专业角色">
                                <option v-for="majorRole in majorRoleList" v-bind:value="majorRole.id">{{majorRole.roleName}}</option>
                            </select>
                        </div>
           	</div>
            <div class="form-group">
                <div class="col-sm-2 control-label">授权使用时间</div>
                <div class="col-sm-10">
                    <select v-model="useTimeTypeCode" class="form-control" placeholder="授权使用时间">
                        <option v-for="useTimeType in useTimeTypeList" v-bind:value="useTimeType.code">{{ useTimeType.message }}</option>
                    </select>
                </div>
            </div>
			<div class="form-group">
                    <div class="col-sm-2 control-label">选择学员表</div>
                    <div class="col-sm-10">
                        <input :value="studentExcel" id="file" name="file" type="file"/>
                    </div>
            </div>
			<div class="form-group">
				<div class="col-sm-2 control-label"></div>
				<input type="button" class="btn btn-primary" @click="impo" value="确定"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		</form>
	</div>
    
    
    
</div>
<!-- 选择部门 -->
<div id="deptLayer" style="display: none;padding:10px;">
	<ul id="deptTree" class="ztree"></ul>
</div>
<script src="${request.contextPath}/statics/js/modules/employer/employer.js?_${.now?long}"></script>
</body>
</html>